import React, { memo } from "react";
import PropTypes from "prop-types";
import HomeSectionV1Wrapper from "./style";
import SectionHeader from "@/components/section-header";
import SectionRooms from "@/components/section-rooms";
import SectionFooter from "@/components/section-footer";
const HomeSectionV1 = memo(function HomeSectionV1(props) {
  const { roomListInfoObj } = props;
  return (
    <HomeSectionV1Wrapper>
      <div className="section-inner">
        <SectionHeader
          title={roomListInfoObj.title}
          subtitle={roomListInfoObj.subtitle}
        />
        <SectionRooms roomList={roomListInfoObj.list} />
        <SectionFooter />
      </div>
    </HomeSectionV1Wrapper>
  );
});

HomeSectionV1.propTypes = {
  roomListInfoObj: PropTypes.object,
};

export default HomeSectionV1;
